package com.situ.javase.week2.day1;



public class Number {
private  int  num1;
private  int  num2;


	public Number(){
		
	}
	 
	public  Number(int num1 , int num2) {
		this.num1 = num1;
		this.num2 = num2;
	}

	
	public void add() {
		int add = num1 + num2;
		System.out.println(add);
	}
	public void sub() {
		int sub = num1 - num2;
		System.out.println(sub);
	}
	public void multi() {
		int multi = num1 * num2;
		System.out.println(multi);
	}
	public void div() {
		double div = num1 / num2;
		System.out.println(div);
	}

	@Override
	public String toString() {
		return "Number [num1=" + num1 + ", num2=" + num2 + "]";
	}
	
	
	public  static void main(String[] args) {
		Number number = new Number(10,5);
		number.add();
		number.sub();
		number.multi();
		number.div();
}
}